using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LogAnalyzer.Dialogs
{
    public partial class About : Form
    {
        public About()
        {
            InitializeComponent();
            Text = Globalization.ResourceManager.Current.GetString("ABOUT");
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void About_Load(object sender, EventArgs e)
        {
            System.Reflection.Assembly myApp = System.Reflection.Assembly.GetEntryAssembly();

            lblVersion.Arguments = new object[] { myApp.GetName().Version.ToString() };
            lblCompileDate.Arguments = new object[] { System.IO.File.GetLastWriteTime(myApp.Location) };
            string compileMode = "release";
#if DEBUG
            compileMode = "debug";
#endif
            lblCompileMode.Arguments = new object[] { compileMode };

        }

        private void lnkStefanoGinobili_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.stefanoginobili.it");
        }

    }
}